#ifndef _IN_COMMON_FILE_OPERATION_H_
#define _IN_COMMON_FILE_OPERATION_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include "InCommon.h"

typedef enum
{
    E_REMOVE_FILE = 0,
    E_TOUCH_FILE,
    E_CHECK_FILE,
}EComChooseFileMode;

Com_s32 Ext_InComFile_Access(Com_ps8 file_name);
Com_s32 Ext_InComFile_Creat(Com_ps8 file_name);
Com_void Ext_InComFile_JudgeCreat(Com_ps8 file_name);
Com_s32 Ext_InComFile_Remove(Com_ps8 file_name);
Com_void Ext_InComFile_JudgeRemove(Com_ps8 file_name);
Com_s32 Ext_InComFile_ChooseMode(Com_ps8 file_name,Com_s32 mode);
Com_s32 Ext_InComFile_GetSize(Com_ps8 filename);
Com_s64 Ext_InComFile_GetLen(const char *filePath);
Com_s32 Ext_InComFile_Write(Com_ps8 file_name,Com_ps8 buffer,Com_s32 size);
Com_s32 Ext_InComFile_ReadStr(Com_ps8 file_name,Com_ps8 buffer,Com_s32 size);
Com_s32 Ext_InComFile_ReadInt(Com_ps8 file_name,_OUT Com_ps32 val);
Com_s32 Ext_InComFile_BasicIOAppend(Com_ps8 file_name ,Com_ps8 buffer,Com_s32 size);
Com_s32 Ext_InComFile_BasicIORead(Com_ps8 file_name ,Com_ps8 buffer,Com_s32 size);
Com_s32 Ext_InComFile_BasicIODelFront(Com_ps8 file_name ,Com_s32 size);
Com_s32 Ext_InComFile_ReadDir(Com_ps8 path,_OUT Com_ps8 buf);
Com_s32 Ext_InComFile_Copy(char *dest, char *src);

#ifdef __cplusplus
}
#endif

#endif
